package com.design.flyweight;

/**
 * @author cxx
 * @create 2020-04-21 11:23
 **/
public class Main {


    /**
     * 享元模式
     */
    public static void main(String[] args) {

        User user = UserFactory.getUser ("111333");
        user.printNumId ();

        User user2 = UserFactory.getUser ("111333");
        user2.printNumId ();

    }


}
